package chap04.r21421.d1106.SportsTest;


public class SportsTest {
    public static void main(String[] args) {
        Person p=new Person("张三");
        Football football=new Football();
        p.howToPlay(football);
    }
}
interface Sports{
    public abstract void play();
}
class Football implements Sports{
    @Override
    public void play(){
        System.out.println(("踢足球"));
    }
}
class Person{
    private String name;

    public Person (String name){
        this.name=name;
    }
    public String getName() {
            return name;
        }

    public void setName(String name) {
            this.name = name;
        }
        public void howToPlay(Sports sp){


    }
}
